// DataSourceConfig.java
package com.kk.test.connectionpool;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 读取数据库配置文件，封装一个配置类
 */
@Data
@Component // 确保这个类能被 Spring 扫描到
@ConfigurationProperties(prefix = "jdbc") // 指定配置前缀为 jdbc
public class DataSourceConfig {

    public String driverClassName;
    public String url;
    public String username;
    public String password;
    public String initialSize;
    public String maxSize;
    public String health;
    public String delay;
    public String period;
    public String timeout;
    public String waittime;
}